﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chowpoo.Sql;
using CourseSystem.Core.Entities;
using CourseSystem.Core.SqlServerDAL;

namespace CourseSystem.Core.BLL
{
    public class CommonContentBLL:CommonBLL<CommonContentInfo,CommonContentDAL>
    {
        public static CommonContentInfo Get(int id)
        {
            using (var dal = new CommonContentDAL(Settings.ConnectionName))
            {
                return dal.SelectSingle(o => o.Id == id);
            }
        }

    }
}
